extends CardState

func enter() -> void:
    if !state: return push_error('状态未分配')
    # 打开卡牌放置区域的检测
    card.dropArea.monitoring = true
    # 当点击卡牌时获取当前卡牌索引,用于在该卡牌返回手牌时的操作
    card.index = card.get_index()

func onInput(event: InputEvent) -> void:
    if event is InputEventMouseMotion:
        transition.emit(self, State.DRAGGING)
